package com.mym.demo;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/10 16:44
 * @description
 */
public  class  Test1{
    public static void main(String[] args) {
        C c = new C();
        c.showA();
        c.showB();
        c.showC();
    }
}
abstract class A{
    int numa=10;
    abstract void showA();
}abstract class B extends A{
    int numb=20;
    abstract void showB();
}class C extends B{
    int numc=30;

    @Override
    void showA() {
        System.out.println(numa);
    }

    @Override
    void showB() {
        System.out.println(numb);
    }
    void showC(){
        System.out.println(numc);
    }
}

